<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>


<!DOCTYPE html>
<html lang="en">

<head>


<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="2019SSM课程设计">
<meta name="author" content="16计科小组">

<title>搜索结果</title>

<!-- Bootstrap core CSS -->
<link
	href="${pageContext.request.contextPath}/static/vendor/bootstrap/css/bootstrap.min.css"
	rel="stylesheet">

<!-- Custom fonts for this template -->
<link
	href="${pageContext.request.contextPath}/static/vendor/fontawesome-free/css/all.min.css"
	rel="stylesheet" type="text/css">
<link
	href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic'
	rel='stylesheet' type='text/css'>
<link
	href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800'
	rel='stylesheet' type='text/css'>

<!-- Custom styles for this template -->
<link
	href="${pageContext.request.contextPath}/static/css/clean-blog.min.css"
	rel="stylesheet">

</head>

<body>


	<!-- Main Content -->
	<div class="container">
		<div class="row">
			<div class="col-lg-8 col-md-10 mx-auto">
				      
				<c:if test="${empty result}">    
	                 <img src="${pageContext.request.contextPath}/static/images/noResult.jpg">
	            </c:if>
						<c:forEach var="article" items="${result}">
							<div class="post-preview">
								<a
									href="${pageContext.request.contextPath}/article/${article.id}.html">
									<h2 class="post-title">${article.title }</h2>
								  	<h3 class="post-subtitle">${article.summary }</h3>  
								</a>
								<p class="post-meta">
									Keywords: <a href="#">${article.keyWords }</a><br/>
									 ${article.publishDate }
								</p>
							</div>
							<hr>
						</c:forEach>			
	
				<!-- Pager -->
				<div class="clearfix">
					<a class="btn btn-primary float-right" href="#">Older Posts
						&rarr;</a>
				</div>
			</div>
		</div>
	</div>


	<hr>

	<jsp:include page="/common/foot.jsp"></jsp:include>

	<!-- Bootstrap core JavaScript -->
	<script
		src="${pageContext.request.contextPath}/vendor/jquery/jquery.min.js"></script>
	<script
		src="${pageContext.request.contextPath}/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

	<!-- Custom scripts for this template -->
	<script
		src="${pageContext.request.contextPath}/static/js/clean-blog.min.js"></script>

</body>

</html>
